import {
  getStorage,
  asyncSetStorage,
  asyncRemoveStorage,
} from '../utils/storage.js'

const AUTHTOKEN = 'AUTH_GUOLIAN_TOKEN'

// 获取token
export const getToken = () => {
  return getStorage(AUTHTOKEN)
}
// 设置token
export const setToken = (token) => {
  asyncSetStorage(AUTHTOKEN, token)
}
// 删除token
export const removeToken = () => {
  asyncRemoveStorage(AUTHTOKEN)
}
